package cn.kgc.goodsdemo.controller;

import cn.kgc.goodsdemo.pojo.Goodssort;
import cn.kgc.goodsdemo.pojo.ResultEntity;
import cn.kgc.goodsdemo.service.GoodssortService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class SortController {

    @Resource
    GoodssortService goodssortService;
    @RequestMapping("/seleSort")
    public ResultEntity<List<Goodssort>> seleSort(){
        List<Goodssort> sele = goodssortService.sele();
    return ResultEntity.successWithoutData(sele);
    }
}
